﻿@{
    Layout = "~/Views/Shared/_WebLayout.cshtml";
}
@section css{
   <link rel="stylesheet" type="text/css" href="/templates/yuan/css/shopcart.css" />
}
@section javascript{
<script type="text/javascript" src="/templates/yuan/js/cart.js"></script>

}

<div class="shopcart-box">
    <div class="area">
        <div class="shopcart-top clear">
            <div class="m-title">
                我的购物车</div>
            <ul class="m-shopprocess">
                <li class="li-1 show"></li>
                <li class="li-2"></li>
            </ul>
        </div>
        <div class="shopcart-main">
            <table class="table-shop mgbt-15" cellpadding="0" cellspacing="0" border="0" width="100%">
                <tbody>
                    <tr>
                        <th class="td-1" width="12%">
                            <input id="chkAll" name="chkAll" type="checkbox">
                            <p>
                                全选</p>
                        </th>
                        <th class="td-2" width="23%">
                            商品名称
                        </th>
                        <th class="td-3" width="11%">
                            单价
                        </th>
                        <th class="td-4" width="11%">
                            数量
                        </th>
                        <!--<th class="td-5" width="11%">折扣</th>-->
                        <th class="td-6" width="11%">
                            金额
                        </th>
                        <!--<th class="td-7" width="11%">优惠</th>-->
                        <th class="td-8" width="10%">
                            操作
                        </th>
                    </tr>
                    <tr>
                        <td class="td-1">
                            <input name="cart_id" type="checkbox" value="176">
                        </td>
                        <td class="td-2">
                            <div class="proimg clear">
                                <a href="/goods/show-176.aspx">
                                    <img src="/upload/201409/10/small_201409101355034062.jpg" style="width: 20px;"></a>
                                <p>
                                    <a href="/goods/show-176.aspx">祝福一生 (套餐：undefined)</a></p>
                            </div>
                        </td>
                        <td class="td-3">
                            ￥169.00
                        </td>
                        <td class="td-4">
                            <div class="pronum clear">
                                <input type="text" name="goods_quantity" class="input" style="width: 30px; text-align: center;
                                    ime-mode: Disabled;" value="1" onblur="CartAmountTotal(this, '/', '176');" onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)))">
                            </div>
                        </td>
                        <!--<td class="td-5">5折</td>-->
                        <td class="td-6">
                            ￥169.00
                        </td>
                        <!--<td class="td-7"><i>双十一特价</i></td>-->
                        <td class="td-8">
                            <a class="delete" onclick="DeleteCart(this,'/','176');" href="javascript:;">删除</a><!-- | <a href="#">收藏</a>-->
                        </td>
                    </tr>
                    <tr>
                        <td class="td-1">
                            <input name="cart_id" type="checkbox" value="208">
                        </td>
                        <td class="td-2">
                            <div class="proimg clear">
                                <a href="/goods/show-208.aspx">
                                    <img src="/upload/201411/07/small_201411072043242343.jpg" style="width: 20px;"></a>
                                <p>
                                    <a href="/goods/show-208.aspx">母亲的臂弯 (套餐：undefined)</a></p>
                            </div>
                        </td>
                        <td class="td-3">
                            ￥169.00
                        </td>
                        <td class="td-4">
                            <div class="pronum clear">
                                <input type="text" name="goods_quantity" class="input" style="width: 30px; text-align: center;
                                    ime-mode: Disabled;" value="1" onblur="CartAmountTotal(this, '/', '208');" onkeypress="return (/[\d]/.test(String.fromCharCode(event.keyCode)))">
                            </div>
                        </td>
                        <!--<td class="td-5">5折</td>-->
                        <td class="td-6">
                            ￥169.00
                        </td>
                        <!--<td class="td-7"><i>双十一特价</i></td>-->
                        <td class="td-8">
                            <a class="delete" onclick="DeleteCart(this,'/','208');" href="javascript:;">删除</a><!-- | <a href="#">收藏</a>-->
                        </td>
                    </tr>
                    <tr>
                        <th colspan="9">
                            <div class="shop-pri">
                                <p class="p1" style="font-size: 12px;">
                                    共<b>2</b>件商品</p>
                                <p class="p2" style="font-size: 12px;">
                                    商品总价(不含运费)：<b style="font-size: 12px;">¥338.00</b></p>
                                <p>
                                    <a href="javascript:" class="c-btn2 btn-01" name="" type="button" onclick="javascript:do_page('/index.aspx')">
                                        继续购物</a> <a href="javascript:" class="c-btn2 btn-02" name="" type="button" onclick="javascript:do_page('/shopping/confirm.aspx')">
                                            去结算</a>
                                </p>
                            </div>
                        </th>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>

</div>

<script type="text/javascript">
    $("#chkAll").click(function () {
        if ($(this).attr("checked") == "checked") {
            $("input[name='cart_id']").attr("checked", $(this).attr("checked"));
        } else {
            $("input[name='cart_id']").removeAttr("checked");
        }
    });
    function do_page(val) {
        if (val != "") {
            window.location.href = val;
        }
    }
</script>
